package com.zhanghe.study.design_pattern.chain_pattern;

/**
 * @author zh
 * @date 2022/10/22 16:10
 */
public abstract class Handler {
    protected Handler successor;

    public void setSuccessor(Handler successor) {
        this.successor = successor;
    }

    // 处理请求
    public abstract void handleRequest();

}
